import React from 'react'
import {Outlet,useNavigate} from 'react-router-dom'
export default function HotNews() {
   const nav=useNavigate()
   const go=(path)=>{
      nav(path)
   }
   return (
    <div>
      <h2>热门信息</h2>
      <button onClick={()=>go('/hot/local')}>本地热榜</button>
      <button onClick={()=>go('/hot/car')}>汽车热榜</button>
      <button onClick={()=>go('/hot/vedio')}>视频热榜</button>
      <button onClick={()=>go('/hot/traval')}>旅游热榜</button>
      <Outlet></Outlet>
    </div>
   )
}
